<style lang='scss' type='stylesheet/scss' scoped>
.as-button {
  margin-bottom: 10px;
}
</style>
<template>
  <div>
    <as-h2>icon</as-h2>

    <as-card :text="text" title="设置 icon 的按钮前缀会加上 icon">
      <as-button icon="el-icon-plus" type="primary">主要按钮</as-button>
      <as-button icon="el-icon-warning" type="warning">警告按钮</as-button>
    </as-card>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "",
  data() {
    return {
      text: `<template>
   <div>
     <as-button icon="el-icon-plus" type="primary">主要按钮</as-button>
     <as-button icon="el-icon-warning" type="warning">警告按钮</as-button>
   </div>
 </template>`
    };
  }
};
</script>
